//package pl.edu.pw.perg.compinfodb.ui;
//
//import java.io.File;
//
//import pl.edu.pw.perg.compinfodb.manager.IConnectorManager;
//import pl.edu.pw.perg.compinfodb.manager.IElementTypeManager;
//import pl.edu.pw.perg.compinfodb.manager.IFieldManager;
//import pl.edu.pw.perg.compinfodb.manager.IPhysicalElementManager;
//import pl.edu.pw.perg.compinfodb.manager.IVirtualElementManager;
//import pl.edu.pw.perg.compinfodb.xls.XLSMetadataReader;
//
//public class MetadataImporter {
//	
//	private IElementTypeManager typeManager;
//	private IFieldManager fieldManager;
//	private IVirtualElementManager virtualElementManager;
//	private XLSMetadataReader metadataReader;
//	private IPhysicalElementManager physicalElementManager;
//	private IConnectorManager connectorManager;
//	
//	public void setConnectorManager(IConnectorManager connectorManager) {
//		this.connectorManager = connectorManager;
//	}
//
//	public void importMetadata(File file){
//		
//		metadataReader = new XLSMetadataReader();
//		fieldManager.saveAll(metadataReader.getFields());
//		typeManager.saveAll(metadataReader.getTypes());
//		virtualElementManager.saveAll(metadataReader.getElementsStructure());
//		physicalElementManager.saveAll(metadataReader.getPhysicalElements());
//		connectorManager.saveAll(metadataReader.getConnections());
//
//	}
//
//	public void setTypeManager(IElementTypeManager typeManager) {
//		this.typeManager = typeManager;
//	}
//
//	public void setFieldManager(IFieldManager fieldManager) {
//		this.fieldManager = fieldManager;
//	}
//
//	public void setVirtualElementManager(
//			IVirtualElementManager virtualElementManager) {
//		this.virtualElementManager = virtualElementManager;
//	}
//
//	public void setPhysicalElementManager(
//			IPhysicalElementManager physicalElementManager) {
//		this.physicalElementManager = physicalElementManager;
//	}	
//
//}
